<%@ page import ="hamed.*" import="java.sql.*" contentType="text/html;charset=windows-1252"%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<%
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
   String url = "jdbc:odbc:iranhk";
   Connection con = DriverManager.getConnection(url, "iranhk", "iranhk");
%>
<body text=#cfcfcf vLink=lightblue aLink=white link=skyblue bgColor=#000000 
leftMargin=0 topMargin=0 border="0" marginright="0" marginheight="0" 
marginwith="0">
<table border=0 cellspacing="1" style="border-collapse: collapse"  width="100%">
  <tr>
    <td width="100%">&nbsp; <!--about|article|..linkage -->
           <!-- about|atr...:phrack box -->
       <TABLE cellSpacing=0 cellPadding=1 width="97%" align=center bgColor=#0000a8 border=0>
</TABLE></TD>  
          </TR></TBODY></TABLE>

    </td>
  </tr>
  <tr>
    <td width="100%">&nbsp;  
      <div align="center">
        <center>  
      <table border=0 cellspacing="1" style="border-collapse: collapse"  width="880" height="100">
            <!--pictures section-->
        <tr>
          <td width="232" align="center" height="97">&nbsp;</td>
          <td width="232" align="center" height="97">
          <img border="0" src="./pic/noxpenguin-trans.gif" width="50" height="60"></td>
          <td width="127" align="center" height="97">&nbsp; 
              <img src="./pic/shirt01.jpg" width="50" height="60"><!--img1:image-->
          </td>
          <td width="80" align="center" height="97">&nbsp;
           <img src="./pic/bhcircle2.gif" width="50" height="60"><!--img1:image-->
          </td>
          <td width="105" align="center" height="97">&nbsp;
            <img src="./pic/dis.jpg" width="50" height="60"><!--img1:image-->
          </td>
          <td width="130" align="center" height="97">&nbsp; <!--img1:image-->
          <img border="0" src="./pic/81smblue.jpg" width="50" height="60"></td>
          <td width="175" align="center" height="97">
          <img border="0" src="./pic/images.jpg" width="55" height="75"></td>
          <td width="255" align="center" height="97">&nbsp;</td>
          <td width="1" height="97">&nbsp;</td>
        </tr>
      </table>
        </center>
    </div>
    </td>    
  </tr>
  <tr>   
    <td width="100%">
        <table border=0 cellspacing="1" style="border-collapse: collapse"  width="100%">

                                  <!--main section-->
           <%--this is def section --%>
      <%     
               PreparedStatement pst;
               ResultSet rst;
               PhrackTable pt;
               String name,address;
      %>
          <tr>
            <td width="33%" valign="top">
              <table border=0 cellspacing="1" style="border-collapse: collapse"  width="100%" >
                        <!--left of main for articles,links,tools phrack boxes-->
                  <tr>                    
                  <td width="100%">
                     <!--links:phrack box-->
                     <% 
                       pst=con.prepareStatement(
                          "select NAME,ADDRESS from tb_links order by dat;"
                       );
                       rst=pst.executeQuery();
                       pt=new PhrackTable();            
                       while (rst.next()){
                         name=rst.getString("NAME");
                         address="http://"+rst.getString("ADDRESS");
                         pt.setTitle("links");
                         pt.addRrow(name,address);              
                       }
                       out.print(pt.getOut());             
                     %>        
                  </td>
                </tr>
                <tr>
                  <td width="100%">&nbsp;
                    <!--articles:phrack box-->
                     <% 
                       pst=con.prepareStatement(
                          "select name,id from tb_articles order by dat;"
                       );
                       rst=pst.executeQuery();
                       pt=new PhrackTable();            
                       while (rst.next()){
                         name=rst.getString("NAME");
                         address="./download/downArticle.jsp?ID="+rst.getString("ID");
                         pt.setTitle("articles");
                         pt.addRrow(name,address);              
                       }
                       out.print(pt.getOut());             
                     %>        
                  </td>
                </tr>
                <tr>
                  <td width="100%">&nbsp;
                    <!--tools:phrack box-->
                     <% 
                       pst=con.prepareStatement(
                          "select name,id from tb_tools order by dat;"
                       );
                       rst=pst.executeQuery();
                       pt=new PhrackTable();            
                       while (rst.next()){
                         name=rst.getString("NAME");
                         address="./download/downTool.jsp?ID="+rst.getString("ID");
                         pt.setTitle("tools");
                         pt.addRrow(name,address);              
                       }
                       out.print(pt.getOut());             
                     %>        
                  
                  </td>
                </tr>
              </table>  
            </td>
            <td width="33%">
            <p align="center">&nbsp; <!--middle of main for ...... main image,text-->                       
               <table border=0 cellspacing="1" style="border-collapse: collapse" width="100%" height="590">
                 <tr>
                   <td width="100%" height="125">&nbsp;
                    <IMG height=158 alt=phracklogo  src="./pic/phracklogo.jpg">
                   </td>
                 </tr>
                 <tr>
                   <td background="hacker%20pic/untitled1.bmp" align="center" >
                     <table border=0 cellspacing="1" style="border-collapse: collapse" width="494" height="42">
                     <tr>
                       <td width="40" height="1"></td>
                       <td width="420" height="1">
                                             
                       </td>
                       <td width="24" height="1"></td>
                     </tr>
                   </table>
                    <table border=0 cellspacing="1" style="border-collapse: collapse" width="100%" height="237">
                      <tr>
                        <td width="100%" height="234">&nbsp;</td>
                      </tr>
                    </table>
                   </td>
                                      
              </table>
            </td>
            <td width="34%" valign="top">
              <table border=0 cellspacing="1" style="border-collapse: collapse"  width="100%">
                    <!--right of main for ...... phrack boxes-->
                <tr>
                  <td width="100%" valign="top">
                      <!--news:phrack box-->
                      <% 
                       pst=con.prepareStatement(
                          "select name,id from tb_news order by dat;"
                       );
                       rst=pst.executeQuery();
                       pt=new PhrackTable();            
                       while (rst.next()){
                         name=rst.getString("NAME");
                         address="./download/downNew_last.jsp?ID="+rst.getString("ID");
                         pt.setTitle("news");
                         pt.addRrow(name,address);              
                       }
                       out.print(pt.getOut());             
                      %>        
                       
                  
                  </td>
                </tr>
                <tr>
                  <td width="100%" valign="top">&nbsp;
                      <!--new members:phrack box-->
                     <% 
                       pst=con.prepareStatement(
                          "select name,id from tb_members order by dat;"
                       );
                       rst=pst.executeQuery();
                       pt=new PhrackTable();            
                       while (rst.next()){
                         name=rst.getString("NAME");
                         address="./download/userProfile.jsp?ID="+rst.getString("ID");
                         pt.setTitle("members");
                         pt.addRrow(name,address);              
                       }
                       out.print(pt.getOut());             
                     %>        
                                   
                  </td>
                </tr>
              </table>
            </td>
          
          </tr>
        </table>
    </td>
  </tr>
</table>
</body>

</html>
<%
  rst.close();
  con.close();
%>